function Rect(layer, color, alpha, x, y, w, h) {
	this.layer = layer;
	this.color = color;
	this.alpha = alpha;
	this.x = x;
	this.y = y;
	this.w = w;
	this.h = h;
}

Rect.prototype = {
	draw: function (ctx) {
		ctx.save();
		ctx.fillStyle = this.color;
		ctx.globalAlpha = this.alpha;
		ctx.fillRect(this.x, this.y, this.w, this.h);
		ctx.restore();
	},
}
